﻿using AMAP.Domain;
using AMAP.ServiceClasses.Common;
using AMAP.ServiceInterfaces;
using AMAP.ServiceInterfaces.Common;
using System.Linq;

namespace AMAP.ServiceClasses
{
    public class UserService : BaseRepositoryService<User>, IUserService
    {
        public UserService(IDatabaseFactory databaseFactory)
            : base(databaseFactory)
        {
        }
        public User GetByEmail(string Email)
        {
            return this.dataContext.UserSet.FirstOrDefault(u => u.Email == Email);
        }
    }
}
